package com.mindskip.xzs.viewmodel.admin.exam;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class AddExamReq {
    /**
     * 考试名称
     */
    @NotBlank(message = "考试名称不能为空")
    private String name;
    /**
     * 考试类型
     */
    @NotNull(message = "考试类型不能为空")
    private Integer examType;
    /**
     * 考试限制时间
     */
    private List<String> limitDateTime;
    /**
     * 试卷id
     */
    @NotNull(message = "试卷id不能为空")
    private Integer paperId;
    /**
     * 考试分类
     */
    private String category;
    /**
     * 考试员工企业微信id
     */
    @NotEmpty(message = "参考员工不能为空")
    private List<String> userQywxIds;
    /**
     * 是否能重复考试
     */
    private Boolean repetition;
    /**
     * 是否微信提醒
     */
    private Boolean notice;

    /**
     * 考试限制次数
     */
    @NotNull(message = "考试限制次数不能为空")
    private Integer limitCount;
    /**
     * 考试学分
     */
    @NotNull(message = "考试学分不能为空")
    private Integer credit;
    /**
     * 答卷是否展示解析
     */
    private Boolean showAnalysis;
    /**
     * 答卷是否展示正确答案
     */
    private Boolean showCorrectAnswer;;
    /**
     * 及格分
     */
    private Integer passScore;
    /**
     * 授课人员
     */
    private String teacherName;
    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime teacherTime;
}
